package com.cxy.datawarehouse.service;

import com.cxy.datawarehouse.entity.ElementType;
import com.cxy.datawarehouse.entity.StandardCodeType;
import com.cxy.datawarehouse.mapper.ElementTypeMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class ElementTypeService {
    @Resource
    ElementTypeMapper elementTypeMapper;

    public List<ElementType> list() {
        return elementTypeMapper.findAll();
    }

    public void create(ElementType elementType){
        elementTypeMapper.save(elementType);
    }

}
